interface Father {
  money: string
  hourse: number
}
interface Son extends Father {
  phone: string
}

let myself: Son = { phone: 'iPhoneXR', hourse: 3, money: 'ONEPICE' }
console.log(myself); // {phone: "iPhoneXR", hourse: 3, money: "100"}

let mySister: Son = { phone: 'vivo', hourse: 0, money: '10' }
console.log(mySister); // {phone: "vivo", hourse: 0, money: "10"}

// 一个接口可以继承多个接口
interface Sun extends Son, Father{
  name: string
  qq: number
}
let mySun: Sun = { name: '路飞', qq: 8888888, money: 'ONEPICEplus', hourse: 5, phone: '8848' }
console.log(mySun); // {name: "路飞", qq: 8888888, money: "ONEPICEplus", hourse: 5, phone: "8848"}

